package ooday02;

public class InterfaceDemo {
    public static void main(String[] args) {


    }
}


interface Inter{
    abstract void show();
    void test();
    //void say(){}//编译错误不能有方法体
}

class interImpl implements Inter{
    @Override
    public void show(){

    }
    @Override
    public void test(){

    }

}

interface Inter1{
    void show();
}
interface Inter2{
    void test();
}

abstract class Aoo{
    void shy(){}
}

class Boo extends Aoo implements Inter1,Inter2{
    @Override
    public void show(){
    }
    public void test(){
    }

    @Override
    void shy(){
    }
}




interface Inter3{
    void show();
}

interface Inter4 extends Inter3{
    void test();
}

class Coo implements Inter4{
    @Override
    public void show(){
    }

    @Override
    public void test(){
    }

}




